<template>
  <div class="main">
    <article-list class="main-content" :list="list"></article-list>
    <div class="right-side"></div>
  </div>
</template>

<script>
import ArticleList from '@/components/ArticleList'
import { getArticleList } from '@/api/article'
export default {
  name: 'Article',
  components: { ArticleList },
  data() {
    return {
      list: []
    }
  },
  created() {
    getArticleList().then((res) => {
      this.list = res.data
    })
  }
}
</script>

<style lang="less" scoped>
.main {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.main-content {
  width: 760px;
  margin: 0 auto;
}
.right-side {
  width: 200px;
  border-left: 1px solid #ccc;
}
</style>
